from starlette_admin import EnumField
from starlette_admin.contrib.sqla import ModelView

from src.application.payment.enums import PaymentStatus


class PaymentView(ModelView):
    fields = (
        "id",
        "summ",
        "bill_id",
        EnumField("status", enum=PaymentStatus, select2=False),
        "user",
        "created_at",
    )
